import { AREA_CODE, COUNTRY } from '../dict/index'

/**
 * 区号
 * {{areaCode: string, country: string}[]}
 */
export const areaCode = Object.keys(AREA_CODE).map(key => {
  const areaCode = AREA_CODE[key]
  const country = COUNTRY[key]
  return { areaCode, country, label: `${country} (${areaCode})` }
})

export default {
  areaCode,
}
